import { KeepAlive } from "vue";
//分类
const classify = () => import("@/views/classify/index");

// 商家详情
const shopDetail = () => import("@/views/classify/shopDetail");

// 本地商户
const store = () => import("@/views/store/index");

// 商家详情
const storeInfo = () => import("@/views/store/info");

// 收藏列表
const storeColllect = () => import("@/views/store/collect");

// 搜索
const storeSearch = () => import("@/views/store/search");

// 商户列表
const storeList = () => import("@/views/store/list");

// 商户举报
const storeReport = () => import("@/views/store/report");

// 在线买单
const storePay = () => import("@/views/store/pay");

// 城市选择
const storeCity = () => import("@/views/store/city");





export default [
  {
    path: "/store",
    meta: {
      title: "本地商户",
      keepAlive: true,
    },
    name: "store",
    component: store,
  },
  {
    path: "/classify",
    meta: {
      title: "品牌馆",
      keepAlive: true,
    },
    name: "classify",
    component: classify,
  },
  {
    path: "/store-info",
    meta: {
      title: "商家详情",
    },
    name: "storeInfo",
    component: storeInfo,
  },
  {
    path: "/store-collect",
    meta: {
      title: "收藏",
    },
    name: "storeColllect",
    component: storeColllect,
  },
  {
    path: "/store-search",
    meta: {
      title: "搜索",
    },
    name: "storeSearch",
    component: storeSearch,
  },
  {
    path: "/store-list",
    meta: { 
      title: "商户列表", 
      keepAlive: true },
    name: "storeList",
    component: storeList,
  },
  {
    path: "/store-report",
    meta: {
      title: "举报",
    },
    name: "storeReport",
    component: storeReport,
  },
  {
    path: "/store-pay",
    meta: {
      title: "在线买单",
      KeepAlive: true,
    },
    name: "storePay",
    component: storePay,
  },
  {
    path: "/store-city",
    meta: {
      title: "城市选择",
    },
    name: "storeCity",
    component: storeCity,
  },
  {
    path: "/shopDetail",
    meta: {
      title: "商家详情",
    },
    name: "shopDetail",
    component: shopDetail,
  },

];
